package com.mingzhi.forum.dao;

import com.mingzhi.forum.model.Article;
import com.mingzhi.forum.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper {

    int insert(User row);

    int insertSelective(User row);

    /**
     * 根据用户id查询用户信息
     * @param id 用户id
     * @return
     */
    User selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(User row);

    int updateByPrimaryKey(User row);

    User selectUserByName(String username);
}